rendernodeparser: Parse images differently
authorBenjamin Otte <otte@redhat.com>
Thu, 9 May 2019 01:56:25 +0000 (03:56 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 12 May 2019 15:27:01 +0000 (17:27 +0200)
commit3a373b9b33504a85a1a38f82c944fc530dbdba5b
tree62d7298d1dc033e5c401eabfa3527889cc1daf0c
parent8be95ca34815e33b08688e198561e5bc32161a20
rendernodeparser: Parse images differently

Instead of encoding the raw data, encode the full image to a PNG.
And instead of stuffing that encoding into a string, use a full
data: url.
And then remove the width and height properties, because they're now
implicitly included in the data.
And then change the parser to match.
And because the parser now parses regular urls on top of data: urls, we
can now load any random file.
gsk/gskrendernodeparser.c
testsuite/gsk/compare/texture-url.node [new file with mode: 0644]
testsuite/gsk/compare/texture-url.png [new file with mode: 0644]
testsuite/gsk/meson.build
testsuite/gsk/serializedeserialize/widgetfactory.node